<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="UTF-8"%>
<%@include file="/lib/common/basedir.jsp"%>
<!DOCTYPE html>
<html lang="en">
<head>
<%@include file="/lib/common/headerResource.html"%>
<!--sidebar-->
<link href="<%=basedir%>/lib/css/sidebar.css" rel="stylesheet">
<title>reserve</title>

<style>
.content {
	margin-top: 1.2em;
}

.title {
	font-size: 1.6em;
}

.line {
	margin-bottom: 3.4em;
}

.role {
	font-size: 1.4em;
}
</style>
</head>
<body>
	<div class="container-fluid">
		<div class="row">
			<!--左侧导航-->
			<div class="col-sm-3 col-md-2 sidebar">
				<%@include file="../sidebar.jsp"%>
			</div>
			<!--右面板-->
			<div
				class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 rightPanel">
				<div class="row">
					<h1 class="page-header col-md-11">新建用户</h1>
				</div>

				<form class="form-horizontal content" method="post"
					action="<%=basedir%>/admin/authorization">
					<div class="form-group line">
						<span class="title col-md-1">用户</span>
						<div class="col-md-4">
							<input type="text" name="userName" class="form-control input-lg"
								id="end" placeholder="用户名">
						</div>
					</div>
					<div class="form-group line">
						<span class="title col-md-1">密码</span>
						<div class="col-md-4">
							<input type="text" name="password" class="form-control input-lg"
								id="end" placeholder="密码">
						</div>
					</div>

					<div class="form-group line">
						<span class="title col-md-1">权限</span>
						<div class="col-md-4 role">
							<label class="radio-inline"> <input type="radio"
								name="type" id="inlineRadio1" value="leader"> 总店服务员
							</label> <label class="radio-inline"> <input type="radio"
								name="type" id="inlineRadio2" value="ordinary"> 分店服务员
							</label>
						</div>
					</div>

					<div class="form-group line">
						<div class="col-md-2 ">
							<button type="submit" class="btn btn-default btn-lg  btn-block">确定</button>
						</div>
					</div>

					<%
						if (request.getAttribute("failedMsg") != null) {
					%>
					<div class="form-group" style="margin-top:-2.2em;">
						<div class="col-md-4 ">
							<div class="alert alert-danger alert-dismissible" role="alert"
								style="margin-top: 2em;">
								<button type="button" class="close" data-dismiss="alert"
									aria-label="Close">
									<span aria-hidden="true">&times;</span>
								</button>
								<%=request.getAttribute("failedMsg")%>
							</div>
						</div>
					</div>

					<%
						} else {
						}
					%>

					<%
						if (request.getAttribute("successMsg") != null) {
					%>
					<div class="form-group" style="margin-top:-2.2em;">
						<div class="col-md-4 ">
							<div class="alert alert-success alert-dismissible" role="alert"
								style="margin-top: 2em;">
								<button type="button" class="close" data-dismiss="alert"
									aria-label="Close">
									<span aria-hidden="true">&times;</span>
								</button>
								<%=request.getAttribute("successMsg")%>
							</div>
						</div>
					</div>
					<%
						} else {
						}
					%>
				</form>

				<%@include file="/lib/common/userUIFooter.html"%>

			</div>

		</div>
	</div>

	<!-- jquery and bootstrap js -->
	<%@include file="/lib/common/footerResource.html"%>

</body>
</html>